package com.ruoyi.swla2.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.swla2.mapper.WqRealtimegatherdataMapper;
import com.ruoyi.swla2.domain.WqRealtimegatherdata;
import com.ruoyi.swla2.service.IWqRealtimegatherdataService;

/**
 * 水质检测仪-实时数据Service业务层处理
 *
 * @author gdqt
 * @date 2024-09-09
 */
@Service
public class WqRealtimegatherdataServiceImpl implements IWqRealtimegatherdataService {
    @Autowired
    private WqRealtimegatherdataMapper wqRealtimegatherdataMapper;

    /**
     * 查询水质检测仪-实时数据
     *
     * @param ID 水质检测仪-实时数据主键
     * @return 水质检测仪-实时数据
     */
    @Override
    public WqRealtimegatherdata selectWqRealtimegatherdataByID(Long ID) {
        return wqRealtimegatherdataMapper.selectWqRealtimegatherdataByID(ID);
    }

    /**
     * 查询水质检测仪-实时数据列表
     *
     * @param wqRealtimegatherdata 水质检测仪-实时数据
     * @return 水质检测仪-实时数据
     */
    @Override
    public List<WqRealtimegatherdata> selectWqRealtimegatherdataList(WqRealtimegatherdata wqRealtimegatherdata) {
        return wqRealtimegatherdataMapper.selectWqRealtimegatherdataList(wqRealtimegatherdata);
    }

    /**
     * 新增水质检测仪-实时数据
     *
     * @param wqRealtimegatherdata 水质检测仪-实时数据
     * @return 结果
     */
    @Override
    public int insertWqRealtimegatherdata(WqRealtimegatherdata wqRealtimegatherdata) {
        return wqRealtimegatherdataMapper.insertWqRealtimegatherdata(wqRealtimegatherdata);
    }

    /**
     * 修改水质检测仪-实时数据
     *
     * @param wqRealtimegatherdata 水质检测仪-实时数据
     * @return 结果
     */
    @Override
    public int updateWqRealtimegatherdata(WqRealtimegatherdata wqRealtimegatherdata) {
        return wqRealtimegatherdataMapper.updateWqRealtimegatherdata(wqRealtimegatherdata);
    }

    /**
     * 批量删除水质检测仪-实时数据
     *
     * @param IDs 需要删除的水质检测仪-实时数据主键
     * @return 结果
     */
    @Override
    public int deleteWqRealtimegatherdataByIDs(Long[] IDs) {
        return wqRealtimegatherdataMapper.deleteWqRealtimegatherdataByIDs(IDs);
    }

    /**
     * 删除水质检测仪-实时数据信息
     *
     * @param ID 水质检测仪-实时数据主键
     * @return 结果
     */
    @Override
    public int deleteWqRealtimegatherdataByID(Long ID) {
        return wqRealtimegatherdataMapper.deleteWqRealtimegatherdataByID(ID);
    }
}
